/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.tms.module.exceptionrecord.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.time.LocalDateTime;

/**
 * 异常记录实体类
 *
 * @author Blade
 * @since 2022-03-03
 */
@Data
@TableName("tm_exception_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ExceptionRecord对象", description = "异常记录")
public class TMExceptionRecord extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	private Long id;
	/**
	 * 运输单ID
	 */
	@ApiModelProperty(value = "运输单ID")
	private Long parentId;
	/**
	 * 异常类型
	 */
	@ApiModelProperty(value = "异常类型")
	private Long exceptionType;
	/**
	 * 异常时间
	 */
	@ApiModelProperty(value = "异常时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime exceptionDate;
	/**
	 * 异常图片
	 */
	@ApiModelProperty(value = "异常图片")
	private String exceptionPic;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;

	/**
	 * 父单据类型
	 */
	@ApiModelProperty(value = "父单据类型")
	private String orderType;

	/**
	 * 异常原因
	 */
	@ApiModelProperty(value = "异常原因")
	private Long exceptionTypeDesc;

	/**
	 * 父单据状态
	 */
	@ApiModelProperty(value = "父单据状态")
	private String orderStatus;
	/**
	 * 是否已经完成异常单费用推送
	 */
	@ApiModelProperty(value = "是否已经完成异常单费用推送")
	private String alreadyExceptionBill;
}
